<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="Student/main/public :: #public_style">
    <meta http-equiv="Content-Type" content="multipart/form-data;charset=utf-8" />
</head>

<body class="publicbody">
<header class="header1" th:replace="Student/main/public :: #public_header">

</header>

<section class="public_main">

    <!-- <nav> 标签定义导航链接的部分。 -->
    <div class="left" th:replace="Student/main/public :: #public_left">

    </div>

    <!--<div class="mygraduationdesignright">-->
        <!--<h1>我的毕设</h1>-->
        <!--<div class="divs">-->
            <!--<div class="div1">-->
                <!--<label for="id1">毕设题目：</label>-->
                <!--<input id="id1" type="text">-->
            <!--</div>-->

            <!--<div class="div2">-->
                <!--<label for="id2">指导教师：</label>-->
                <!--<input id="id2" type="text">-->
            <!--</div>-->

            <!--<div class="div3">-->
                <!--<label for="id3">详细信息：</label>-->
                <!--<input id="id3" type="text">-->
            <!--</div>-->

            <!--<div class="div4">-->
                <!--<label for="id4">技术需求：</label>-->
                <!--<input id="id4" type="text">-->
            <!--</div>-->

            <!--<div class="div5">-->
                <!--<label for="id5">备注：</label>-->
                <!--<input id="id5" type="text">-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->

    <div class="uploadattachmentright">
        <h1>上传附件</h1>
        <form id="addForm" th:action="@{/uploadFile}"  th:method="Post"  ENCTYPE="multipart/form-data">
            <div class="logininputbox2">
                <label for="file"  >上传文件</label>
                <input id="file" type="file" name="file">
            </div>
            <button type="submit" name="submit" value="提交" style="margin-top:20px;width:30%;cursor:pointer;background:#54a4d7;padding:6px 20px;font-family:'BebasNeueRegular','Arial Narrow',Arial,sans-serif;color:#fff;font-size:18px;border:1px solid #4682be;margin-bottom:10px;margin-right:50px;margin-left:10px;text-shadow:0 1px 1px rgba(0,0,0,0.5);border-radius:3px;-webkit-box-shadow:0px 1px 4px 4px rgba(0,0,0,0.07) inset,0px 0px 0px 3px rgb(254,254,254),0px 5px 3px 3px rgb(210,210,210);-moz-box-shadow:0px 1px 4px 4px rgba(0,0,0,0.07) inset,0px 0px 0px 3px rgb(254,254,254),0px 5px 3px 3px rgb(210,210,210);box-shadow:0px 1px 4px 4px rgba(0,0,0,0.07) inset,0px 0px 0px 3px rgb(254,254,254),0px 5px 3px 3px rgb(210,210,210);" >提交</button>
        </form>
    </div>
<p style="color: red; margin-top: 30px; margin-left: 40px">温馨提示：上传后的附件只可以在管理员界面操作</p>
    <div class="myattachmentlist">
        <h1>我的附件列表</h1>
        <div style="height:70px; overflow-y:scroll;">

        <table border="1">
            <tr>
                <th class="th1">文件名称</th>
                <th class="th2">文件路径</th>
                <th class="th3">上传时间</th>

            </tr>
            <tr th:each="attachmentInformations :${attachmentInformation}">
                <td th:text="${attachmentInformations.getName()}">d:/adad</td>
                <td th:text="${attachmentInformations.getFilepath()}">2019/10.2</td>
                <td th:text="${#dates.format(attachmentInformations.createtime, 'yyyy-MM-dd')}">zlj</td>

            </tr>

        </table>
        </div>

    </div>

</section>

<footer class="footer" th:replace="Student/main/public :: #public_footer">

</footer>
<script th:src="@{/js/jquery.js}" src="../js/jquery.js"></script>

<script th:src="@{/js/js.js}" src="../js/js.js"></script>
</body>
</html>